package com.example.service;

import com.example.mapper.MessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 所学内容:
 *
 * @author ..
 * @Date 2023/11/2 15:57
 */
@Service
@Transactional
public class MessageServiceImpl implements MessageService{
    @Autowired
    private MessageMapper messageMapper;


    @Override
    public int insertMes(Integer jsId, Integer jrId, Integer posId) {
        return messageMapper.insertMes(jsId,jrId,posId);
    }

    @Override
    public List<Integer> messageById(Integer sId) {
        return messageMapper.messageById(sId);
    }
}
